package com.lujianfei.httprequest.intercepter

import okhttp3.Interceptor
import okhttp3.Response

class HeadInterceptor: Interceptor {
    override fun intercept(chain: Interceptor.Chain): Response {
        val request = chain.request().newBuilder()
                .addHeader("app_key", "myAppKey")
                .addHeader("sign", "mysign")
                .addHeader("times_tamp", "2019-06-01 13:47:45")
                .build()
        return chain.proceed(request)
    }
}